import { Dialog } from 'quasar'

export function jump ({state}, payload) {
  this.$router.push(payload)
}

export function logout ({state, commit}) {
  Dialog.create({
    title: '注销',
    message: '确定是否退出系统？',
    ok: '退出',
    cancel: '再看看'
  }).then(() => {
    commit('exit')
  }).catch(() => {
    console.log('stay')
  })
}
